/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package EntityClass;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 *
 * @author Ben
 */
@Entity
public class Bed implements Serializable {
   
    @Id
    private Long bedNo;
    private String roomNo;
    //may need to add more attribute
    
    public Bed(){}
    
    public void create(Long bedNo, String roomNo){
        this.setRoomNo(roomNo);
        this.setBedNo(bedNo);
    }
    
    public String getRoomNo() {
        return roomNo;
    }

    public void setRoomNo(String roomNo) {
        this.roomNo = roomNo;
    }

    public Long getBedNo() {
        return bedNo;
    }

    public void setBedNo(Long bedNo) {
        this.bedNo = bedNo;
    }

 
    
}
